import axios from "axios";
import Api_addr from "@/api/api_addr";
export default {
  api: Api_addr.api_url + "/todoList",
  //更新
  update(jwt, todos) {
    return axios({
      method: 'POST',
      url: `${this.api}`,
      headers: {'token' : jwt},
      data: todos
    })
  },

  //获取
  get(jwt) {
    return axios({
      method: 'GET',
      url: `${this.api}`,
      headers: {'token' : jwt},
    })
  },
}
